package com.general.framework.web.filter;

import com.general.framework.core.lang.Dates;
import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;

import java.util.Date;

@Component
public class DateConverter implements Converter<String, Date> {
    @Override
    public Date convert(String source) {
        return Dates.parseDate(source);
    }
}
